package com.md.rps.mybatis.interfaces;

import com.md.rps.mybatis.model.USER;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface I_USER {

    List<USER> getUserList(@Param("start") int start, @Param("end") int end);

    USER getUser(int id);

    USER getUserByWeChart(@Param("openid") String openid, @Param("unionid") String unionid);

    USER getUserByCard(String CARD_NUM);

    Integer addUser(USER user);

    Integer updateUser(USER user);

    Integer deleteUser(int id);

}
